﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Popup.Master" CodeBehind="UpdateServiceDatePopup.aspx.cs"
    Inherits="VSM.UpdateServiceDatePopup" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:HiddenField ID="hdnDistNumber" runat="server" />
                <asp:HiddenField ID="hdnItemCode" runat="server" />
                <div style="height: 200px; overflow: scroll">
                    <table style="width: 100%; border: 1px;" cellpadding="3" cellspacing="0">
                        <tr>
                            <td class="FormLineItemAlt" style="width: 10%;">
                                <asp:Label ID="lblDocNo" Text="Document No.:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" colspan="3">
                                <asp:Label ID="lblDocNumber" Text="" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItem" style="width: 10%;">
                               <asp:Label ID="lblModel" Text="Model:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 15%;">
                               <asp:Label ID="lblModelName" Text="" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 10%;">
                               <asp:Label ID="lblProduct" Text="Product:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 15%;">
                               <asp:Label ID="lblProductName" Text="" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItemAlt" style="width: 10%;">
                               <asp:Label ID="lblColor" Text="Clolor:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" style="width: 15%;">
                               <asp:Label ID="lblColorName" Text="" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" style="width: 10%;">
                               <asp:Label ID="lblVINNo" Text="VIN Number:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" style="width: 15%;">
                               <asp:Label ID="lblVINNumber" Text="" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItem" style="width: 10%;">
                               <asp:Label ID="lblEngNo" Text="Engine Number:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 15%;">
                               <asp:Label ID="lblEngineNumber" Text="" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 10%;">
                               <asp:Label ID="lblKeyNo" Text="Key Number:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItem" style="width: 15%;">
                               <asp:Label ID="lblKeyNumber" Text="" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItemAlt" style="width: 10%;">
                               <asp:Label ID="lblPrdYear" Text="Production Year:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" valign="middle" style="width: 15%;">
                               <asp:Label ID="lblproductionYear" Text="" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" style="width: 10%;">
                               <asp:Label ID="lblLastServiceDate" Text="Last Service Date:" runat="server"></asp:Label>
                            </td>
                            <td class="FormLineItemAlt" style="width: 15%;">
                                <asp:TextBox ID="txtLastServiceDate" Width="100px" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="txtLastServiceDate_CalendarExtender" runat="server" 
                                    Format="dd/MM/yyyy" PopupButtonID="imgLastServiceDate" 
                                    TargetControlID="txtLastServiceDate">
                                </cc1:CalendarExtender>
                                <asp:ImageButton ID="imgLastServiceDate" runat="Server" AlternateText="Click to show calendar" ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                <asp:Label ID="lblLastServiceDateRequired" runat="server" ForeColor="Red" Text="*"></asp:Label>                               
                            </td>
                        </tr>
                    </table>
                </div>
                <asp:Button ID="btnAccept" runat="server" Text="Update" OnClick="btnAccept_Click" Style="background-image: url('/Images/bgButton.png');
                    background-repeat: no-repeat;" Width="80px" />
                <asp:Label ID="lblError" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
